package com.yz.controller;

import com.yz.mapper.UserMapper;
import com.yz.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author yuanzheng
 * @date 2020/7/26-16:20
 */
@RestController
public class UserController {
    @Autowired
    private UserMapper userMapper;

    @RequestMapping("/getUser")
    public List<User> getUser() {
        return userMapper.queryUserList();
    }
}
